docs: Identify examples that are C code
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Mon, 27 Jan 2014 19:55:18 +0000 (14:55 -0500)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Wed, 29 Jan 2014 17:45:49 +0000 (12:45 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=723119

76 files changed:
gdk/gdk.c
gdk/gdkapplaunchcontext.c
gdk/gdkdisplay.c
gdk/gdkdisplaymanager.c
gdk/gdkevents.c
gdk/gdkevents.h
gdk/gdkkeys.c
gdk/gdkpango.c
gdk/gdkwindow.h
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkwindow-wayland.c
gtk/deprecated/gtkactivatable.c
gtk/deprecated/gtkradioaction.c
gtk/deprecated/gtkrc.c
gtk/deprecated/gtkstock.c
gtk/deprecated/gtkuimanager.c
gtk/deprecated/gtkvbox.c
gtk/gtkaboutdialog.c
gtk/gtkaccellabel.c
gtk/gtkapplication.c
gtk/gtkapplicationwindow.c
gtk/gtkcellarea.c
gtk/gtkcelllayout.c
gtk/gtkcellrenderer.c
gtk/gtkcombobox.c
gtk/gtkcontainer.c
gtk/gtkdialog.c
gtk/gtkdnd.c
gtk/gtkdrawingarea.c
gtk/gtkeditable.c
gtk/gtkentry.c
gtk/gtkexpander.c
gtk/gtkfilechooser.c
gtk/gtkfilechooserbutton.c
gtk/gtkfilefilter.c
gtk/gtkicontheme.c
gtk/gtkiconview.c
gtk/gtkimage.c
gtk/gtkimcontext.c
gtk/gtkinfobar.c
gtk/gtklabel.c
gtk/gtklevelbar.c
gtk/gtkliststore.c
gtk/gtkmain.c
gtk/gtkmenu.c
gtk/gtkmenuitem.c
gtk/gtkmessagedialog.c
gtk/gtknotebook.c
gtk/gtkpagesetup.c
gtk/gtkpaned.c
gtk/gtkplacessidebar.c
gtk/gtkprintcontext.c
gtk/gtkprintoperation.c
gtk/gtkradiobutton.c
gtk/gtkradiomenuitem.c
gtk/gtkrecentchooserdialog.c
gtk/gtkrecentfilter.c
gtk/gtkrecentmanager.c
gtk/gtkscale.c
gtk/gtksearchbar.c
gtk/gtksettings.c
gtk/gtksocket.c
gtk/gtkspinbutton.c
gtk/gtkstylecontext.c
gtk/gtktextview.c
gtk/gtktogglebutton.c
gtk/gtktoolpalette.c
gtk/gtktreemodel.c
gtk/gtktreemodelfilter.c
gtk/gtktreemodelsort.c
gtk/gtktreeselection.c
gtk/gtktreestore.c
gtk/gtktreeviewcolumn.c
gtk/gtkwidget.c
gtk/gtkwidgetpath.c
gtk/gtkwindow.c

index 3bc27f5ef2cc1a92756aafee7d4c9dfd51b066b8..664b011223c9bb77bffa3f4161450f154c6e684b 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -502,7 +502,7 @@ gdk_init (int *argc, char ***argv)
  *
  * A minimal main program for a threaded GTK+ application
  * looks like:
- * |[
+ * |[<!-- language="C" -->
  * int
  * main (int argc, char *argv[])
  * {
@@ -532,7 +532,7 @@ gdk_init (int *argc, char ***argv)
  *
  * Erik Mouw contributed the following code example to
  * illustrate how to use threads within GTK+ programs.
- * |[
+ * |[<!-- language="C" -->
  * /<!---->*-------------------------------------------------------------------------
  *  * Filename:      gtk-thread.c
  *  * Version:       0.99.1
@@ -843,7 +843,7 @@ gdk_threads_dispatch_free (gpointer data)
  * running in thread A and accessing @self after it has been finalized
  * in thread B:
  *
- * |[
+ * |[<!-- language="C" -->
  * static gboolean
  * idle_callback (gpointer data)
  * {
@@ -949,7 +949,7 @@ gdk_threads_add_idle (GSourceFunc    function,
  * This variant of g_timeout_add_full() can be thought of a MT-safe version 
  * for GTK+ widgets for the following use case:
  *
- * |[
+ * |[<!-- language="C" -->
  * static gboolean timeout_callback (gpointer data)
  * {
  *    SomeWidget *self = data;
index bfad9ba28acd223820b61844e5e3d36006918885..e91cb05bf30bd75b11d973b92d31cbe16cb11827 100644 (file)
@@ -36,7 +36,7 @@
  * screen or workspace.
  * <example>
  * <title>Launching an application</title>
- * |[
+ * |[<!-- language="C" -->
  * GdkAppLaunchContext *context;
  *
  * context = gdk_display_get_app_launch_context (display);
index a29c1061dadd2298c295b8013dcfa1e38a0f08f9..8acc312b90df1977faba203bf10c1e4049de9585 100644 (file)
@@ -2115,7 +2115,7 @@ static GQueue gdk_error_traps = G_QUEUE_INIT;
  *
 * <example>
  * <title>Trapping an X error</title>
- * |[
+ * |[<!-- language="C" -->
  * gdk_error_trap_push (<!-- -->);
  *
  *  // ... Call the X function which may cause an error here ...
index 2262722d31d92073765da859154ab8a35b85ed05..e53556a30360dccf63d82a647fe064e51a234976 100644 (file)
@@ -87,7 +87,7 @@
  *
  * <example id="backend-specific">
  * <title>Backend-specific code</title>
- * |[
+ * |[<!-- language="C" -->
  * #ifdef GDK_WINDOWING_X11
  *   if (GDK_IS_X11_DISPLAY (display))
  *     {
@@ -225,7 +225,7 @@ static const gchar *allowed_backends;
  * By default, GDK tries all included backends.
  *
  * For example,
- * |[
+ * |[<!-- language="C" -->
  * gdk_set_allowed_backends ("wayland,quartz,*");
  * ]|
  * instructs GDK to try the Wayland backend first,
index 0398b32291e0de39a5733ebaaac4999a65bea876..a569d6d3d3a4149c1c9fc25f9ff19b260e609678 100644 (file)
@@ -1676,7 +1676,7 @@ gdk_event_get_source_device (const GdkEvent *event)
  * core pointer. Coordinate extraction, processing and requesting more
  * motion events from a %GDK_MOTION_NOTIFY event usually works like this:
  *
- * |[
+ * |[<!-- language="C" -->
  * {
  *   /&ast; motion_event handler &ast;/
  *   x = motion_event->x;
index d3209b7a75491efc9b5f63513f9e4b16f6ec2be3..8df160bd70117a24c2abd13db506d5c1b0a93406 100644 (file)
@@ -1142,7 +1142,7 @@ struct _GdkEventDND {
  * The event type is always the first field in all of the event types, and
  * can always be accessed with the following code, no matter what type of
  * event it is:
- * |[
+ * |[<!-- language="C" -->
  *   GdkEvent *event;
  *   GdkEventType type;
  *
@@ -1153,14 +1153,14 @@ struct _GdkEventDND {
  * can be cast to the appropriate event type, or the union member
  * name can be used. For example if the event type is %GDK_BUTTON_PRESS
  * then the x coordinate of the button press can be accessed with:
- * |[
+ * |[<!-- language="C" -->
  *   GdkEvent *event;
  *   gdouble x;
  *
  *   x = ((GdkEventButton*)event)->x;
  * ]|
  * or:
- * |[
+ * |[<!-- language="C" -->
  *   GdkEvent *event;
  *   gdouble x;
  *
index 1573f9204aed22f01d02ba192438d3f39c6f2428..6d0555f70b41727e25d6c22a9071cbfb7101f9b7 100644 (file)
@@ -503,7 +503,7 @@ gdk_keymap_lookup_key (GdkKeymap          *keymap,
  * <literal>&lt;Control&gt;plus</literal> accelerator &lt;Shift&gt; should
  * be masked out.
  * </para>
- * |[
+ * |[<!-- language="C" -->
  * &sol;* We want to ignore irrelevant modifiers like ScrollLock *&sol;
  * &num;define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)
  * gdk_keymap_translate_keyboard_state (keymap, event->hardware_keycode,
@@ -518,7 +518,7 @@ gdk_keymap_lookup_key (GdkKeymap          *keymap,
  * all modifiers that might affect the translation of the key;
  * this allowed accelerators to be stored with irrelevant consumed
  * modifiers, by doing:</para>
- * |[
+ * |[<!-- language="C" -->
  * &sol;* XXX Don't do this XXX *&sol;
  * if (keyval == accel_keyval &&
  *     (event->state &amp; ~consumed &amp; ALL_ACCELS_MASK) == (accel_mods &amp; ~consumed))
index 68a21cb9e020b80cf0af5fd9c44835ff3e651124..9b2b8542cdc1519d0edfa28c6ef20e4ead4636b1 100644 (file)
@@ -53,7 +53,7 @@
  * <title>Draw transformed text with Pango and cairo</title>
  * <!-- Note that this example is basically the same as
  *      demos/gtk-demo/rotated_text.c -->
- * |[
+ * |[<!-- language="C" -->
  * #define RADIUS 100
  * #define N_WORDS 10
  * #define FONT "Sans Bold 18"
index adf2d42df9ea66ec843a9d9e1315867bd2afb46b..268dba528f7c96188c6e27091049ad95f5706574 100644 (file)
@@ -421,7 +421,7 @@ struct _GdkWindowAttr
  * Here's an example of how the terminal example would be implemented, assuming
  * a terminal area widget called "terminal" and a toplevel window "toplevel":
  *
- * |[
+ * |[<!-- language="C" -->
  *     GdkGeometry hints;
  *
  *     hints.base_width = terminal->char_width;
index 0e0c33e9ab26eb127a08fb68828f4b6027459bc9..64224b16ec022ecb11d2816ded1c3610039ffb42 100644 (file)
@@ -49,7 +49,7 @@
  * calls by an ifdef as follows. Since GDK may be built with multiple
  * backends, you should also check for the backend that is in use (e.g. by
  * using the GDK_IS_WAYLAND_DISPLAY() macro).
- * |[
+ * |[<!-- language="C" -->
  * #ifdef GDK_WINDOWING_WAYLAND
  *   if (GDK_IS_WAYLAND_DISPLAY (display))
  *     {
index 9ebb3b39334298786c23c00a0305c1b00c42f6f7..13293bd4d6e945529f9500a7f0dcd029ca1f292d 100644 (file)
@@ -2275,7 +2275,7 @@ gdk_wayland_window_get_wl_surface (GdkWindow *window)
  * This function should be called before a #GdkWindow is shown. This is
  * best done by connecting to the #GtkWidget::realize signal:
  *
- * |[
+ * |[<!-- language="C" -->
  *   static void
  *   widget_realize_cb (GtkWidget *widget)
  *   {
index 1a8fc806667c3d819d26342311451fe349352522..c14a7242e355c5009f567ddf748369eca5495aa3 100644 (file)
@@ -41,7 +41,7 @@
  * </para>
  * <example>
  * <title>A class fragment implementing #GtkActivatable</title>
- * |[
+ * |[<!-- language="C" -->
  *
  * enum {
  * ...
index 94bb219cf6ff8323bc5746908a3f07742ba5d798..b0db5dd8fedb3ad5950b055fb520056c8ae3933d 100644 (file)
@@ -402,7 +402,7 @@ create_menu_item (GtkAction *action)
  * to the group. 
  *
  * A common way to set up a group of radio group is the following:
- * |[
+ * |[<!-- language="C" -->
  *   GSList *group = NULL;
  *   GtkRadioAction *action;
  *  
@@ -492,7 +492,7 @@ gtk_radio_action_set_group (GtkRadioAction *action,
  * and gtk_radio_action_set_group() methods
  *
  * A common way to set up a group of radio actions is the following:
- * |[
+ * |[<!-- language="C" -->
  *   GtkRadioAction *action;
  *   GtkRadioAction *last_action;
  *  
index b763a1b050d79251d78729e9ee0cf031745b959f..8c7dc839279695617909c684f04f14126abd347e 100644 (file)
  * <literal>*</literal>. So for example, the following specifies different icons to
  * use for left-to-right and right-to-left languages:
  *
- * |[
+ * |[<!-- language="C" -->
  * stock["my-stock-item"] =
  * {
  *   { "itemltr.png", LTR, *, * },
  *
  * This could be abbreviated as follows:
  *
- * |[
+ * |[<!-- language="C" -->
  * stock["my-stock-item"] =
  * {
  *   { "itemltr.png", LTR },
  *
  * You can specify custom icons for specific sizes, as follows:
  *
- * |[
+ * |[<!-- language="C" -->
  * stock["my-stock-item"] =
  * {
  *   { "itemmenusize.png", *, *, "gtk-menu" },
  *
  * It's also possible to use custom icons for a given state, for example:
  *
- * |[
+ * |[<!-- language="C" -->
  * stock["my-stock-item"] =
  * {
  *   { "itemprelight.png", *, PRELIGHT },
@@ -1499,7 +1499,7 @@ gtk_rc_get_style (GtkWidget *widget)
  * would be items inside a GNOME canvas widget.
  *
  * The action of gtk_rc_get_style() is similar to:
- * |[
+ * |[<!-- language="C" -->
  *  gtk_widget_path (widget, NULL, &path, NULL);
  *  gtk_widget_class_path (widget, NULL, &class_path, NULL);
  *  gtk_rc_get_style_by_paths (gtk_widget_get_settings (widget),
index c6bb3dc60936faf62ad7e2914f9bbe9087f9b4c7..65c609c59d854318f4294aa0af3dcefbb46ce259 100644 (file)
@@ -483,7 +483,7 @@ static const GtkStockItem builtin_items [] =
  * the correct domain when calling dgettext(). This can be useful, e.g.
  * when dealing with message contexts:
  *
- * |[
+ * |[<!-- language="C" -->
  * GtkStockItem items[] = { 
  *  { MY_ITEM1, NC_("odd items", "Item 1"), 0, 0, "odd-item-domain" },
  *  { MY_ITEM2, NC_("even items", "Item 2"), 0, 0, "even-item-domain" },
index 207d019da9e3a8736ae4b9ace11687e071568fe3..0b8df582b18511022a926076d95a2d1069a649b2 100644 (file)
@@ -3190,7 +3190,7 @@ queue_update (GtkUIManager *manager)
  * UI in an idle function. A typical example where this function is
  * useful is to enforce that the menubar and toolbar have been added to 
  * the main window before showing it:
- * |[
+ * |[<!-- language="C" -->
  * gtk_container_add (GTK_CONTAINER (window), vbox); 
  * g_signal_connect (merge, "add-widget", 
  *                   G_CALLBACK (add_widget), vbox);
index 7745045f9a213db2730202d520dc3873fd2f2103..6a95410ae8982544511df7170a80d5d3e48b9248 100644 (file)
@@ -51,7 +51,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
  * from #GtkBox, and set the #GtkOrientable:orientation property to
  * %GTK_ORIENTATION_VERTICAL in your instance init function, with a
  * call like:
- * |[
+ * |[<!-- language="C" -->
  *   gtk_orientable_set_orientation (GTK_ORIENTABLE (object),
  *                                   GTK_ORIENTATION_VERTICAL);
  * ]|
index 1348ff9f2c4f1afee8597a47984d9226c1e3c7e5..ab5b4af3ddac2f830b0c4ca6f5a43b54498e0338 100644 (file)
@@ -84,7 +84,7 @@
  * application, but in order to ensure proper translation of the title,
  * applications should set the title property explicitly when constructing
  * a GtkAboutDialog, as shown in the following example:
- * |[
+ * |[<!-- language="C" -->
  * gtk_show_about_dialog (NULL,
  *                        "program-name", "ExampleCode",
  *                        "logo", example_logo,
@@ -1653,7 +1653,7 @@ gtk_about_dialog_get_translator_credits (GtkAboutDialog *about)
  * of the language which is currently used in the user interface.
  * Using gettext(), a simple way to achieve that is to mark the
  * string for translation:
- * |[
+ * |[<!-- language="C" -->
  *  gtk_about_dialog_set_translator_credits (about, _("translator-credits"));
  * ]|
  * It is a good idea to use the customary msgid "translator-credits" for this
index e4c9c2fd3a567fd7a6574c3a30017d23613a2774..5be7750a08ea23b38ba393cae950261b4374edbe 100644 (file)
@@ -67,7 +67,7 @@
  * though it is almost always used to display just one accelerator key.
  * <example>
  * <title>Creating a simple menu item with an accelerator key.</title>
- * |[
+ * |[<!-- language="C" -->
  *   GtkWidget *save_item;
  *   GtkAccelGroup *accel_group;
  *
index 38163ed8f6124e3dc56b2dabf089c19ee99d527c..242cccb40334629d80a610cfe70639b8afc1dcd2 100644 (file)
@@ -94,7 +94,7 @@
  * </figure>
  *
  * <example id="gtkapplication"><title>A simple application</title>
- * |[
+ * |[<!-- language="C" -->
  * <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../examples/bloatpad.c">
  *  <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
  * </xi:include>
index 3396de208eaf64bd6b3bda39cb4923608736c303..9b795d12a24d2f31a7e462b31123160d1e51bc58 100644 (file)
@@ -79,7 +79,7 @@
  * using gtk_header_bar_set_show_close_button().
  *
  * <example><title>A GtkApplicationWindow with a menubar</title>
- * |[
+ * |[<!-- language="C" -->
  * app = gtk_application_new ();
  *
  * builder = gtk_builder_new ();
  * </example>
  *
  * <example><title>Handling fallback yourself</title>
- * |[
+ * |[<!-- language="C" -->
  * <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../examples/sunny.c">
  *  <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
  * </xi:include>
index 583072fd666e095782fc37de636c01ca9399f5c1..ae19c180202d5a1f3b95375e5fce29463799276e 100644 (file)
@@ -74,7 +74,7 @@
  * of a #GtkTreeModel one would do the following:
  * <example>
  *   <title>Requesting the width of a handful of GtkTreeModel rows</title>
- *   |[
+ *   |[<!-- language="C" -->
  * GtkTreeIter iter;
  * gint        minimum_width;
  * gint        natural_width;
  * take up the full width of the layouting widget would look like:
  * <example>
  *   <title>A typical get_preferred_width(<!-- -->) implementation</title>
- *   |[
+ *   |[<!-- language="C" -->
  * static void
  * foo_get_preferred_width (GtkWidget       *widget,
  *                          gint            *minimum_size,
  * root level of a #GtkTreeModel one would do the following:
  * <example>
  *   <title>Requesting the height for width of a handful of GtkTreeModel rows</title>
- *   |[
+ *   |[<!-- language="C" -->
  * GtkTreeIter iter;
  * gint        minimum_height;
  * gint        natural_height;
  * runs as follows:
  * <example>
  *   <title>Requesting the width of a handful of GtkTreeModel rows</title>
- *   |[
+ *   |[<!-- language="C" -->
  * GtkAllocation allocation;
  * GdkRectangle  cell_area = { 0, };
  * GtkTreeIter   iter;
  * should be implemented:
  * <example>
  *   <title>Implementing keyboard focus navigation</title>
- *   |[
+ *   |[<!-- language="C" -->
  * static gboolean
  * foo_focus (GtkWidget       *widget,
  *            GtkDirectionType direction)
index 36958b235a2fd18d66a65b8b4038179929e3e533..1bd5070f483ee31635f956db4c911e039329113d 100644 (file)
@@ -90,7 +90,7 @@
  * to the fact that these widgets internally use a #GtkCellArea.
  * The cell area is exposed as a construct-only property by these
  * widgets. This means that it is possible to e.g. do
- * |[
+ * |[<!-- language="C" -->
  * combo = g_object_new (GTK_TYPE_COMBO_BOX, "cell-area", my_cell_area, NULL);
  * ]|
  * to use a custom cell area with a combo box. But construct properties
  * cause the default cell area to be instantiated. In this case, a provided
  * construct property value will be ignored (with a warning, to alert
  * you to the problem).
- * |[
+ * |[<!-- language="C" -->
  * static void
  * my_combo_box_init (MyComboBox *b)
  * {
index aa961e711d2a8a30d2488954e9e70908f8261450..5275a2e683fc9398c0c1f42dc29d630aeacf0432 100644 (file)
@@ -248,7 +248,7 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
    * continue to use the same kind of widget for editing in future
    * releases, therefore you should check the type of @editable
    * before doing any specific setup, as in the following example:
-   * |[
+   * |[<!-- language="C" -->
    * static void
    * text_editing_started (GtkCellRenderer *cell,
    *                       GtkCellEditable *editable,
index 951db192c31c3ebda7601b804cfe6f6d1bbf72a9..ce3d72bf83e9b812d102135ef10ff2da15097e9f 100644 (file)
@@ -623,7 +623,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
    *
    * Here's an example signal handler which fetches data from the model and
    * displays it in the entry.
-   * |[
+   * |[<!-- language="C" -->
    * static gchar*
    * format_entry_text_callback (GtkComboBox *combo,
    *                             const gchar *path,
index de42b916f70bd0abf4d3f201325e7f4156df2c40..bd8d059210ef0c86edb99e5af9e68da7912874e4 100644 (file)
  * the container must return the height for its minimum width. This is easily achieved by
  * simply calling the reverse apis implemented for itself as follows:
  *
- * |[
+ * |[<!-- language="C" -->
  * static void
  * foo_container_get_preferred_height (GtkWidget *widget, gint *min_height, gint *nat_height)
  * {
  * Similarly, when gtk_widget_get_preferred_width_for_height() is called for a container or widget
  * that is height-for-width, it then only needs to return the base minimum width like so:
  *
- * |[
+ * |[<!-- language="C" -->
  * static void
  * foo_container_get_preferred_width_for_height (GtkWidget *widget, gint for_height,
  *                                               gint *min_width, gint *nat_width)
index ad9a37818cd9bd55f73344a882685e90ec2f835a..7c638189e8bfb965f1e2191aa3f677ffd68b57e5 100644 (file)
@@ -98,7 +98,7 @@
  * in the dialog.
  * <example>
  * <title>Simple GtkDialog usage</title>
- * |[
+ * |[<!-- language="C" -->
  * /&ast; Function to open a dialog box displaying the message provided. &ast;/
  * void
  * quick_message (gchar *message)
@@ -848,7 +848,7 @@ gtk_dialog_new_empty (const gchar     *title,
  * so the first button in the list will be the leftmost button in the dialog.
  *
  * Here's a simple example:
- * |[
+ * |[<!-- language="C" -->
  *  GtkWidget *dialog = gtk_dialog_new_with_buttons ("My dialog",
  *                                                   main_app_window,
  *                                                   GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
@@ -1227,7 +1227,7 @@ run_destroy_handler (GtkDialog *dialog, gpointer data)
  * destroying the dialog if you wish to do so.
  *
  * Typical usage of this function might be:
- * |[
+ * |[<!-- language="C" -->
  *   gint result = gtk_dialog_run (GTK_DIALOG (dialog));
  *   switch (result)
  *     {
@@ -1471,7 +1471,7 @@ gtk_dialog_set_alternative_button_order_valist (GtkDialog *dialog,
  *
  * Use this function after adding all the buttons to your dialog, as the
  * following example shows:
- * |[
+ * |[<!-- language="C" -->
  * cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog),
  *                                        _("_Cancel"),
  *                                        GTK_RESPONSE_CANCEL);
index d89e34759ec4795e35a652b0aaa9860164efc14f..008ce0aa776a50782ab9badd014bca2d4ad7fce1 100644 (file)
@@ -1375,7 +1375,7 @@ gtk_drag_dest_set_internal (GtkWidget       *widget,
  * There's no way to set a default action here, you can use the
  * #GtkWidget::drag-motion callback for that. Here's an example which selects
  * the action to use depending on whether the control key is pressed or not:
- * |[
+ * |[<!-- language="C" -->
  * static void
  * drag_motion (GtkWidget *widget,
  *              GdkDragContext *context,
index e5375bcb2c392b63982efe2953d57bd06559c3c3..01039992449420cb25ae8723fec108ffbf8aab88 100644 (file)
@@ -77,7 +77,7 @@
  *
  * <example>
  * <title>Simple GtkDrawingArea usage</title>
- * |[
+ * |[<!-- language="C" -->
  * gboolean
  * draw_callback (GtkWidget *widget, cairo_t *cr, gpointer data)
  * {
index 9c41402320141a4636cfe72afe29d4d8d79f01ac..94b592592bf3574e42fa996444ad7098ff20fc85 100644 (file)
@@ -39,7 +39,7 @@
  *
  * <example>
  * <title>Forcing entry to uppercase.</title>
- * |[
+ * |[<!-- language="C" -->
  * #include &lt;ctype.h&gt;
  *
  * void
index ae18dedd5d52713ca525c44b3605191438e50bc3..01ca5c3e1d0830cab879bb4867196686565bf5bf 100644 (file)
@@ -7709,7 +7709,7 @@ gtk_entry_get_overwrite_mode (GtkEntry *entry)
  *
  * This is equivalent to:
  *
- * |[
+ * |[<!-- language="C" -->
  * gtk_entry_buffer_get_text (gtk_entry_get_buffer (entry));
  * ]|
  *
@@ -7739,7 +7739,7 @@ gtk_entry_get_text (GtkEntry *entry)
  *
  * This is equivalent to:
  *
- * |[
+ * |[<!-- language="C" -->
  * gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (entry), max);
  * ]|
  **/
@@ -7760,7 +7760,7 @@ gtk_entry_set_max_length (GtkEntry     *entry,
  *
  * This is equivalent to:
  *
- * |[
+ * |[<!-- language="C" -->
  * gtk_entry_buffer_get_max_length (gtk_entry_get_buffer (entry));
  * ]|
  *
@@ -7784,7 +7784,7 @@ gtk_entry_get_max_length (GtkEntry *entry)
  *
  * This is equivalent to:
  *
- * |[
+ * |[<!-- language="C" -->
  * gtk_entry_buffer_get_length (gtk_entry_get_buffer (entry));
  * ]|
  *
index 6667fb9ed6ee528d0d06dddabac6e551bb80d0b3..c8b15664a71a8f54e0af4c6fa2249ebcf998b13d 100644 (file)
@@ -43,7 +43,7 @@
  * its expansion state. You should watch this property with a signal
  * connection as follows:
  * </para>
- * |[
+ * |[<!-- language="C" -->
  * expander = gtk_expander_new_with_mnemonic ("_More Options");
  * g_signal_connect (expander, "notify::expanded",
  *                   G_CALLBACK (expander_callback), NULL);
index 6619e78a76286d5a585d50f325a183e0a95ae158..eee79766590bbffdcd57ae2b6009706943a69d1f 100644 (file)
  * </para>
  * <example id="example-gtkfilechooser-preview">
  * <title>Sample Usage</title>
- * |[
+ * |[<!-- language="C" -->
  * {
  *   GtkImage *preview;
  *
  * </para>
  * <example id="example-gtkfilechooser-extra">
  * <title>Sample Usage</title>
- * |[
+ * |[<!-- language="C" -->
  *
  *   GtkWidget *toggle;
  *
@@ -347,7 +347,7 @@ gtk_file_chooser_default_init (GtkFileChooserInterface *iface)
    * illustrates this.
    * <example id="gtkfilechooser-confirmation">
    * <title>Custom confirmation</title>
-   * |[
+   * |[<!-- language="C" -->
    * static GtkFileChooserConfirmation
    * confirm_overwrite_callback (GtkFileChooser *chooser, gpointer data)
    * {
@@ -742,7 +742,7 @@ gtk_file_chooser_get_filename (GtkFileChooser *chooser)
  * a modified version.  If you don't have a file name already &mdash; for
  * example, if the user just created a new file and is saving it for the first
  * time, do not call this function.  Instead, use something similar to this:
- * |[
+ * |[<!-- language="C" -->
  * if (document_is_new)
  *   {
  *     /&ast; the user just created a new document &ast;/
@@ -1094,7 +1094,7 @@ gtk_file_chooser_get_uri (GtkFileChooser *chooser)
  * modified version.  If you don't have a file name already &mdash; for example,
  * if the user just created a new file and is saving it for the first time, do
  * not call this function.  Instead, use something similar to this:
- * |[
+ * |[<!-- language="C" -->
  * if (document_is_new)
  *   {
  *     /&ast; the user just created a new document &ast;/
@@ -1460,7 +1460,7 @@ gtk_file_chooser_get_files (GtkFileChooser *chooser)
  * a file name already &mdash; for example, if the user just created a new
  * file and is saving it for the first time, do not call this function.
  * Instead, use something similar to this:
- * |[
+ * |[<!-- language="C" -->
  * if (document_is_new)
  *   {
  *     /&ast; the user just created a new document &ast;/
index b92262c418cd8a47bacb08362a3be693d5e35d46..c639b71804f889d5868a7b86ad4f9902d770b590 100644 (file)
@@ -72,7 +72,7 @@
  *
  * <example>
  * <title>Create a button to let the user select a file in /etc</title>
- * |[
+ * |[<!-- language="C" -->
  * {
  *   GtkWidget *button;
  *
index 03d1f564b9e936b53ab042d2c1a5d62abd1524a8..9cf3b67a091cf2f6d2c8421f615f6dbeb5790650 100644 (file)
@@ -351,7 +351,7 @@ gtk_file_filter_buildable_custom_tag_end (GtkBuildable *buildable,
  * gtk_file_filter_add_mime_type(), gtk_file_filter_add_pattern(),
  * or gtk_file_filter_add_custom(). To create a filter
  * that accepts any file, use:
- * |[
+ * |[<!-- language="C" -->
  * GtkFileFilter *filter = gtk_file_filter_new ();
  * gtk_file_filter_add_pattern (filter, "*");
  * ]|
index 2e8ac6f167475fa685368c68bf9c5d8824b290fd..959fc037e5650e02fc2e2cd499d309bf28615e3f 100644 (file)
  * so that the icon information is shared with other people
  * looking up icons. In the case where the default screen is
  * being used, looking up an icon can be as simple as:
- * |[
+ * |[<!-- language="C" -->
  * GError *error = NULL;
  * GtkIconTheme *icon_theme;
  * GdkPixbuf *pixbuf;
index 7c19d2ee02ab0be20005505210d081a70b726b6d..39d257d2ee81080b3e2b0372008a844271e835ee 100644 (file)
@@ -5457,7 +5457,7 @@ gtk_icon_view_unselect_path (GtkIconView *icon_view,
  * To do this, you can use gtk_tree_row_reference_new().
  *
  * To free the return value, use:
- * |[
+ * |[<!-- language="C" -->
  * g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
  * ]|
  *
index fdd859e5dc10045ed9d26ec91affedd461f24738..d69d8608da81bd5ab0852aeb5858328042442019 100644 (file)
@@ -52,7 +52,7 @@
  * #GdkPixbuf ("pixel buffer") from a file, and then display that.
  * There's a convenience function to do this, gtk_image_new_from_file(),
  * used as follows:
- * |[
+ * |[<!-- language="C" -->
  *   GtkWidget *image;
  *   image = gtk_image_new_from_file ("myfile.png");
  * ]|
@@ -76,7 +76,7 @@
  * #GtkEventBox, then connect to the event signals on the event box.
  * <example>
  * <title>Handling button press events on a #GtkImage.</title>
- * |[
+ * |[<!-- language="C" -->
  *   static gboolean
  *   button_press_callback (GtkWidget      *event_box,
  *                          GdkEventButton *event,
index f44a00a3221cdf39c8b1a8849ef579c2db6b0cc6..9e0a9eb938f528e8ae10a4645f4a285079637cf5 100644 (file)
@@ -58,7 +58,7 @@
  * implements a subclass of #GtkIMContext or #GtkIMContextSimple and exports
  * these four functions:
  *
- * |[
+ * |[<!-- language="C" -->
  * void im_module_init(#GTypeModule *module);
  * ]|
  * This function should register the #GType of the #GtkIMContext subclass which
  * that g_type_register_static() cannot be used as the type needs to be
  * registered dynamically.
  *
- * |[
+ * |[<!-- language="C" -->
  * void im_module_exit(void);
  * ]|
  * Here goes any cleanup code your input method might require on module unload.
  *
- * |[
+ * |[<!-- language="C" -->
  * void im_module_list(const #GtkIMContextInfo ***contexts, int *n_contexts)
  * {
  *   *contexts = info_list;
@@ -83,7 +83,7 @@
  * pointer to statically defined array of #GtkIMContextInfo items for each
  * provided input method.
  *
- * |[
+ * |[<!-- language="C" -->
  * #GtkIMContext * im_module_create(const #gchar *context_id);
  * ]|
  * This function should return a pointer to a newly created instance of the
index ef3ed805a7af358344562c9464c55f6850af9a31..5d6dee4f3423b1e3ae9e2f011c2ca5b81078949b 100644 (file)
@@ -74,7 +74,7 @@
  *
  * <example>
  * <title>Simple GtkInfoBar usage.</title>
- * |[
+ * |[<!-- language="C" -->
  * /&ast; set up info bar &ast;/
  * info_bar = gtk_info_bar_new ();
  * gtk_widget_set_no_show_all (info_bar, TRUE);
index b43636b802c09e092cb3dcd2815ce68f1f23dc94..91e8b533efaabb97a7c3f61dc1e5d5a00569b8e0 100644 (file)
  * using gtk_label_set_mnemonic_widget(). Here's a simple example where
  * the label is inside a button:
  *
- * |[
+ * |[<!-- language="C" -->
  *   // Pressing Alt+H will activate this button
  *   button = gtk_button_new (<!-- -->);
  *   label = gtk_label_new_with_mnemonic ("_Hello");
  * There's a convenience function to create buttons with a mnemonic label
  * already inside:
  *
- * |[
+ * |[<!-- language="C" -->
  *   // Pressing Alt+H will activate this button
  *   button = gtk_button_new_with_mnemonic ("_Hello");
  * ]|
  * #GtkEntry, you have to point the label at the entry with
  * gtk_label_set_mnemonic_widget():
  *
- * |[
+ * |[<!-- language="C" -->
  *   // Pressing Alt+H will focus the entry
  *   entry = gtk_entry_new (<!-- -->);
  *   label = gtk_label_new_with_mnemonic ("_Hello");
  * linkend="PangoMarkupFormat">markup format</link>.
  * Here's how to create a label with a small font:
  *
- * |[
+ * |[<!-- language="C" -->
  *   label = gtk_label_new (NULL);
  *   gtk_label_set_markup (GTK_LABEL (label), "<small>Small text</small>");
  * ]|
  * way they appear in web browsers, with colored, underlined text. The title
  * attribute is displayed as a tooltip on the link. An example looks like this:
  *
- * |[
+ * |[<!-- language="C" -->
  * gtk_label_set_markup (label, "Go to the <a href="http://www.gtk.org" title="&lt;i&gt;Our&lt;/i&gt; website">GTK+ website</a> for more...");
  * ]|
  *
@@ -2612,7 +2612,7 @@ gtk_label_set_markup_internal (GtkLabel    *label,
  * label's text and attribute list based on the parse results. If the @str is
  * external data, you may need to escape it with g_markup_escape_text() or
  * g_markup_printf_escaped()<!-- -->:
- * |[
+ * |[<!-- language="C" -->
  * char *markup;
  *
  * markup = g_markup_printf_escaped ("&lt;span style=\"italic\"&gt;&percnt;s&lt;/span&gt;", str);
index 83f913cdcfe6fb6d94cc7456aa3219beb860b246..ef8599fbf1356c388e61836a76db513677df10fe 100644 (file)
@@ -35,7 +35,7 @@
  *
  * <example>
  * <title>Adding a custom offset on the bar</title>
- * |[
+ * |[<!-- language="C" -->
  *
  * static GtkWidget *
  * create_level_bar (void)
index c0a5ec28030cfcaf93f6af5281455c158e6cb6d4..09891e7cd5ce65de4ac3005334f7cf30a2d4298a 100644 (file)
@@ -55,7 +55,7 @@
  *
  * <example>
  * <title>Creating a simple list store.</title>
- * |[
+ * |[<!-- language="C" -->
  * enum {
  *   COLUMN_STRING,
  *   COLUMN_INT,
  *
  * <example>
  * <title>A UI Definition fragment for a list store</title>
- * |[
+ * |[<!-- language="C" -->
  * <object class="GtkListStore">
  *   <columns>
  *     <column type="gchararray"/>
@@ -2174,7 +2174,7 @@ gtk_list_store_has_default_sort_func (GtkTreeSortable *sortable)
  * Calling
  * <literal>gtk_list_store_insert_with_values (list_store, iter, position...)</literal>
  * has the same effect as calling
- * |[
+ * |[<!-- language="C" -->
  * gtk_list_store_insert (list_store, iter, position);
  * gtk_list_store_set (list_store, iter, ...);
  * ]|
index c1205444c28f11a77cd7e1cd75291328c882bb0c..011c26fb54b10c93ccba475725518daec60025ea 100644 (file)
@@ -55,7 +55,7 @@
  * </para>
  * <example>
  * <title>Typical main() function for a GTK+ application</title>
- * |[
+ * |[<!-- language="C" -->
  * int
  * main (int argc, char **argv)
  * {
@@ -1121,7 +1121,7 @@ gtk_init_check_abi_check (int *argc, char ***argv, int num_checks, size_t sizeof
  * changed after GTK+ has already been initialized. In this case,
  * you can use it to update the default text direction as follows:
  *
- * |[
+ * |[<!-- language="C" -->
  * setlocale (LC_ALL, new_locale);
  * direction = gtk_get_locale_direction ();
  * gtk_widget_set_default_direction (direction);
@@ -1253,7 +1253,7 @@ gtk_main_quit (void)
  *
  * <example>
  * <title>Updating the UI during a long computation</title>
- * |[
+ * |[<!-- language="C" -->
  *  /&ast; computation going on... &ast;/
  *
  *  while (gtk_events_pending ())
@@ -1828,7 +1828,7 @@ gtk_main_do_event (GdkEvent *event)
  *
  * <example>
  * <title>A persistent window</title>
- * |[
+ * |[<!-- language="C" -->
  * #include &lt;gtk/gtk.h>&lt;
  *
  * int
index dfd217d041bc737b4d510c4d1ff1bf8256c673ee..909e27d3ed09b059ef55bca87c98c1c8653326b9 100644 (file)
@@ -45,7 +45,7 @@
  *
  * <example>
  * <title>Connecting the popup signal handler.</title>
- * |[
+ * |[<!-- language="C" -->
  *   /<!---->* connect our handler which will popup the menu *<!---->/
  *   g_signal_connect_swapped (window, "button_press_event",
  *     G_CALLBACK (my_popup_handler), menu);
@@ -54,7 +54,7 @@
  *
  * <example>
  * <title>Signal handler which displays a popup menu.</title>
- * |[
+ * |[<!-- language="C" -->
  * static gint
  * my_popup_handler (GtkWidget *widget, GdkEvent *event)
  * {
index fdde639e5f7607e2a7d108cb6bd03309911ff6ec..4740f40ee5dbc5e29d79d7c17fe2cc08cf90accb 100644 (file)
@@ -66,7 +66,7 @@
  *
  * <example>
  * <title>Setting markup and accelerator on a MenuItem</title>
- * |[
+ * |[<!-- language="C" -->
  * GtkWidget *child = gtk_bin_get_child (GTK_BIN (menu_item));
  * gtk_label_set_markup (GTK_LABEL (child), "<i>new label</i> with <b>markup</b>");
  * gtk_accel_label_set_accel (GTK_ACCEL_LABEL (child), GDK_KEY_1, 0);
index 4d4d9f048ac2932a5e9f56ffc8a9ca02e8da5540..5fe172461f814ee542bca97c399dfba22df47858 100644 (file)
@@ -59,7 +59,7 @@
  * returns when any dialog button is clicked.
  * <example>
  * <title>A modal dialog.</title>
- * |[
+ * |[<!-- language="C" -->
  *  dialog = gtk_message_dialog_new (main_application_window,
  *                                   GTK_DIALOG_DESTROY_WITH_PARENT,
  *                                   GTK_MESSAGE_ERROR,
@@ -73,7 +73,7 @@
  * You might do a non-modal #GtkMessageDialog as follows:
  * <example>
  * <title>A non-modal dialog.</title>
- * |[
+ * |[<!-- language="C" -->
  *  dialog = gtk_message_dialog_new (main_application_window,
  *                                   GTK_DIALOG_DESTROY_WITH_PARENT,
  *                                   GTK_MESSAGE_ERROR,
@@ -610,7 +610,7 @@ gtk_message_dialog_new (GtkWindow     *parent,
  * instead, since you can't pass the markup string either
  * as the format (it might contain '%' characters) or as a string
  * argument.
- * |[
+ * |[<!-- language="C" -->
  *  GtkWidget *dialog;
  *  dialog = gtk_message_dialog_new (main_application_window,
  *                                   GTK_DIALOG_DESTROY_WITH_PARENT,
@@ -800,7 +800,7 @@ gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
  * may contain special XML characters, you should use g_markup_printf_escaped()
  * to escape it.
 
- * |[
+ * |[<!-- language="C" -->
  * gchar *msg;
  *
  * msg = g_markup_printf_escaped (message_format, ...);
index 0c216dc2b928f8bbd4f0f4f0e66145759f218da0..8e431a473642ba28f023ef656b1ac2b15c68b07e 100644 (file)
@@ -8399,7 +8399,7 @@ gtk_notebook_get_tab_detachable (GtkNotebook *notebook,
  * destination and accept the target "GTK_NOTEBOOK_TAB". The notebook
  * will fill the selection with a GtkWidget** pointing to the child
  * widget that corresponds to the dropped tab.
- * |[
+ * |[<!-- language="C" -->
  *  static void
  *  on_drop_zone_drag_data_received (GtkWidget        *widget,
  *                                   GdkDragContext   *context,
index 8bb1c4094dc0ecd16b512d7fce6f45f5a06c2ce4..63fef1f8fc6cf5c3adedbc3f9d3e5c392db91aa5 100644 (file)
@@ -50,7 +50,7 @@
  *
  * <example>
  * <title>A page setup dialog</title>
- * |[
+ * |[<!-- language="C" -->
  * static GtkPrintSettings *settings = NULL;
  * static GtkPageSetup *page_setup = NULL;
  *
index 7b9ceab985a97873d455c2f944e49888bdb27395..67931ac496b75f9cd5df1015feafdeb2d7b7bd27 100644 (file)
@@ -75,7 +75,7 @@
  *
  * <example>
  * <title>Creating a paned widget with minimum sizes.</title>
- * |[
+ * |[<!-- language="C" -->
  * GtkWidget *hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
  * GtkWidget *frame1 = gtk_frame_new (NULL);
  * GtkWidget *frame2 = gtk_frame_new (NULL);
index 738c3b7ab384cf9e72ff35f61b53f6c49f09864b..e5bb221a3433cd9d29098ccd25b280cb4c72b441 100644 (file)
@@ -4790,7 +4790,7 @@ gtk_places_sidebar_remove_shortcut (GtkPlacesSidebar *sidebar,
  *     A #GSList of #GFile of the locations that have been added as
  *     application-specific shortcuts with gtk_places_sidebar_add_shortcut().
  * To free this list, you can use
- * |[
+ * |[<!-- language="C" -->
  * g_slist_free_full (list, (GDestroyNotify) g_object_unref);
  * ]|
  *
index 10c79d23ba379696292f44e15064407d69560e7e..97d56e50c865772e5f5e89c2e86cae979cbf4947 100644 (file)
@@ -37,7 +37,7 @@
  *
  * <example>
  * <title>Using GtkPrintContext in a #GtkPrintOperation::draw-page callback</title>
- * |[
+ * |[<!-- language="C" -->
  * static void
  * draw_page (GtkPrintOperation *operation,
  *        GtkPrintContext   *context,
index 7c20bd8fdd1bbc67abbcc11fa1e7c0fad44ca013..daf0d37c50e45905e61a075f5b4e13c05a850548 100644 (file)
@@ -61,7 +61,7 @@
  *
  * <example>
  * <title>The high-level printing API</title>
- * |[
+ * |[<!-- language="C" -->
  * static GtkPrintSettings *settings = NULL;
  *
  * static void
@@ -853,7 +853,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
    * Emitted for every page that is printed. The signal handler
    * must render the @page_nr's page onto the cairo context obtained
    * from @context using gtk_print_context_get_cairo_context().
-   * |[
+   * |[<!-- language="C" -->
    * static void
    * draw_page (GtkPrintOperation *operation,
    *            GtkPrintContext   *context,
@@ -3117,7 +3117,7 @@ gtk_print_operation_get_error (GtkPrintOperation  *op,
  * #GtkPrintOperation::done signal will be emitted with the result of the 
  * operation when the it is done (i.e. when the dialog is canceled, or when 
  * the print succeeds or fails).
- * |[
+ * |[<!-- language="C" -->
  * if (settings != NULL)
  *   gtk_print_operation_set_print_settings (print, settings);
  *   
index 3535b28cb93dd33146cc7ec99881c41946bf42b4..8d62e01886d2f5a2efa8e9b42ff96242973bd6ae 100644 (file)
@@ -70,7 +70,7 @@
  *
  * <example>
  * <title>How to create a group of two radio buttons.</title>
- * |[
+ * |[<!-- language="C" -->
  * void create_radio_buttons (void) {
  *
  *    GtkWidget *window, *radio1, *radio2, *box, *entry;
@@ -355,7 +355,7 @@ gtk_radio_button_set_group (GtkRadioButton *radio_button,
  * and gtk_radio_button_set_group() methods
  *
  * A common way to set up a group of radio buttons is the following:
- * |[
+ * |[<!-- language="C" -->
  *   GtkRadioButton *radio_button;
  *   GtkRadioButton *last_button;
  *
index 008b33773ed98700dea274f136b287fa8c639887..8d1fc0e98e226ac8424963e7ee68cfdcbd51fdcb 100644 (file)
@@ -48,7 +48,7 @@
  *
  * <example>
  * <title>How to create a group of radio menu items.</title>
- * |[
+ * |[<!-- language="C" -->
  * GSList *group = NULL;
  * GtkWidget *item;
  * gint i;
index 85fba519d2e6f89a8823e3db9eaa20d0c3f4bb1e..cb0c2e1be4bd16718089a97b0cc5daa35af22163 100644 (file)
@@ -48,7 +48,7 @@
  * <title>Typical usage</title>
  * In the simplest of cases, you can use the following code to use
  * a #GtkRecentChooserDialog to select a recently used file:
- * |[
+ * |[<!-- language="C" -->
  * GtkWidget *dialog;
  *
  * dialog = gtk_recent_chooser_dialog_new ("Recent Documents",
index df690345b03d82e06446d601b6b461c19073880b..a62b0fc901288f13cfcb4519a0c84cf99fb7cff7 100644 (file)
@@ -406,7 +406,7 @@ gtk_recent_filter_buildable_custom_tag_end (GtkBuildable *buildable,
  * gtk_recent_filter_add_pattern(), gtk_recent_filter_add_mime_type(),
  * gtk_recent_filter_add_application(), gtk_recent_filter_add_age().
  * To create a filter that accepts any recently used resource, use:
- * |[
+ * |[<!-- language="C" -->
  * GtkRecentFilter *filter = gtk_recent_filter_new ();
  * gtk_recent_filter_add_pattern (filter, "*");
  * ]|
index 2f564bcd5e974daff8327b4e65d04f7b6801de13..9e8301899eebddabceb0527094516ca48b601865 100644 (file)
@@ -40,7 +40,7 @@
  *
  * Adding a new recently used file is as simple as:
  *
- * |[
+ * |[<!-- language="C" -->
  * GtkRecentManager *manager;
  *
  * manager = gtk_recent_manager_get_default ();
@@ -53,7 +53,7 @@
  * Looking up the meta-data associated with a recently used file
  * given its URI requires calling gtk_recent_manager_lookup_item():
  *
- * |[
+ * |[<!-- language="C" -->
  * GtkRecentManager *manager;
  * GtkRecentInfo *info;
  * GError *error = NULL;
index 6433a57ca7610fbe2b822fdb31a9d98b817c8c1c..3f2c5932efcbfc5ceda2a83723dc8ff704d60be0 100644 (file)
@@ -281,7 +281,7 @@ gtk_scale_class_init (GtkScaleClass *class)
    *
    * Here's an example signal handler which displays a value 1.0 as
    * with "--&gt;1.0&lt;--".
-   * |[
+   * |[<!-- language="C" -->
    * static gchar*
    * format_value_callback (GtkScale *scale,
    *                        gdouble   value)
index 4cfee45cc267bfe15e18611af1607bef44d2d555..969d34b935220b4fa16852f81a3d7e8813eac781 100644 (file)
@@ -56,7 +56,7 @@
  *
  * <example>
  * <title>Creating a search bar</title>
- * |[
+ * |[<!-- language="C" -->
  * <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../examples/search-bar.c">
  *  <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
  * </xi:include>
@@ -168,7 +168,7 @@ preedit_changed_cb (GtkEntry  *entry,
  *
  * <example>
  * <title>Showing the search bar on key presses</title>
- * |[
+ * |[<!-- language="C" -->
  * static gboolean
  * window_key_press_event_cb (GtkWidget *widget,
  *                            GdkEvent  *event,
index cce10660b92d2acc4dd9affa1d2882895a7d8b61..f28d7d3402cbb1ec332e82466a066f9e0c567f42 100644 (file)
@@ -86,7 +86,7 @@
  * need to be aware that settings that are specific to individual widgets
  * may not be available before the widget type has been realized at least
  * once. The following example demonstrates a way to do this:
- * |[
+ * |[<!-- language="C" -->
  *   gtk_init (&argc, &argv);
  *
  *   /&ast; make sure the type is realized &ast;/
index ebe3f7b74f9cb159a9ca845e5cf994ff6be93659..f12e1bee803ff5279c0c7d83174790b8f84bdec3 100644 (file)
@@ -70,7 +70,7 @@
  *
  * <example>
  * <title>Obtaining the window ID of a socket.</title>
- * |[
+ * |[<!-- language="C" -->
  * GtkWidget *socket = gtk_socket_new (<!-- -->);
  * gtk_widget_show (socket);
  * gtk_container_add (GTK_CONTAINER (parent), socket);
index 5ef8e7daa1d4ff89439f785d9a89c0aded9530c0..5734d2cbe2be45c392828031b11e0392608a4d75 100644 (file)
@@ -80,7 +80,7 @@
  *
  * <example>
  * <title>Using a GtkSpinButton to get an integer</title>
- * |[
+ * |[<!-- language="C" -->
  * /&ast; Provides a function to retrieve an integer value from a
  *  &ast; GtkSpinButton and creates a spin button to model percentage
  *  &ast; values.
  *
  * <example>
  * <title>Using a GtkSpinButton to get a floating point value</title>
- * |[
+ * |[<!-- language="C" -->
  * /&ast; Provides a function to retrieve a floating point value from a
  *  &ast; GtkSpinButton, and creates a high precision spin button.
  *  &ast;/
@@ -458,7 +458,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
    *
    * The ::output signal can be used to change to formatting
    * of the value that is displayed in the spin buttons entry.
-   * |[
+   * |[<!-- language="C" -->
    * /&ast; show leading zeros &ast;/
    * static gboolean
    * on_output (GtkSpinButton *spin,
index cee9d65cc757aa3a5f55137db6df3ba1989f1050..f8b6064eabd17f87068ad9a2ec520e672cd33a20 100644 (file)
  * </para>
  * <example>
  * <title>Using an enumeration to identify  animatable regions</title>
- * |[
+ * |[<!-- language="C" -->
  * enum {
  *   REGION_ENTRY,
  *   REGION_BUTTON_UP,
  * </para>
  * <example>
  * <title>Using struct pointers to identify animatable regions</title>
- * |[
+ * |[<!-- language="C" -->
  * void
  * notebook_draw_tab (GtkWidget    *widget,
  *                    NotebookPage *page,
  * </para>
  * <example>
  * <title>Triggering a state change animation on a region</title>
- * |[
+ * |[<!-- language="C" -->
  * gboolean
  * notebook_motion_notify (GtkWidget      *widget,
  *                         GdkEventMotion *event)
@@ -2940,7 +2940,7 @@ gtk_style_context_lookup_color (GtkStyleContext *context,
  *
  * As a practical example, a #GtkButton notifying a state transition on
  * the prelight state:
- * |[
+ * |[<!-- language="C" -->
  * gtk_style_context_notify_state_change (context,
  *                                        gtk_widget_get_window (widget),
  *                                        NULL,
index e49b741f184eae970ed0092fe0ced61c1b75b70a..e63147bc1844ee59f2e57becf733d41d13c1e6fd 100644 (file)
@@ -7385,7 +7385,7 @@ gtk_text_view_reset_im_context (GtkTextView *text_view)
  * you need to insert your own key handling between the input method
  * and the default key event handling of the #GtkTextView.
  *
- * |[
+ * |[<!-- language="C" -->
  * static gboolean
  * gtk_foo_bar_key_press_event (GtkWidget   *widget,
  *                              GdkEventKey *event)
index ee65d2bc86975bcbba42e1a4ca90f806677ce069..b43350b4843a3892f6c0562e68c7c9ba06289e68 100644 (file)
@@ -60,7 +60,7 @@
  *
  * <example>
  * <title>Creating two #GtkToggleButton widgets.</title>
- * |[
+ * |[<!-- language="C" -->
  * void make_toggles (void) {
  *    GtkWidget *dialog, *toggle1, *toggle2;
  *
index f928cff9a713a247adb0f47b156546106917ae53..e6f9f6b981e95800c03dd702d16877a49420933f 100644 (file)
@@ -53,7 +53,7 @@
  * to a #GtkToolPalette. To add a #GtkToolItemGroup to a #GtkToolPalette,
  * use gtk_container_add().
  *
- * |[
+ * |[<!-- language="C" -->
  * GtkWidget *palette, *group;
  * GtkToolItem *item;
  *
@@ -72,7 +72,7 @@
  * can be used to get the dragged item in the #GtkWidget::drag-data-received
  * signal handler of the drag target.
  *
- * |[
+ * |[<!-- language="C" -->
  * static void
  * passive_canvas_drag_data_received (GtkWidget        *widget,
  *                                    GdkDragContext   *context,
index 14060f4cf3a168826d794cc53617135a28379e5e..8e5cc890ce177e1e4a431dfac943088b6eefa319 100644 (file)
  *
  * <example>
  * <title>Acquiring a #GtkTreeIter-struct</title>
- * |[
+ * |[<!-- language="C" -->
  *  /&ast; Three ways of getting the iter pointing to the location &ast;/
  * GtkTreePath *path;
  * GtkTreeIter iter;
  *
  * <example>
  * <title>Reading data from a #GtkTreeModel</title>
- * |[
+ * |[<!-- language="C" -->
  * enum
  * {
  *   STRING_COLUMN,
index effdc3a4f3be233e543d0df1e3bb73a2db7ceb17..f4c6a81c788e4405f226b372401dcb60552cd81d 100644 (file)
@@ -3828,7 +3828,7 @@ gtk_tree_model_filter_get_model (GtkTreeModelFilter *filter)
  * empty. The visible function should therefore take special care of empty
  * rows, like in the example below.
  *
- * |[
+ * |[<!-- language="C" -->
  * static gboolean
  * visible_func (GtkTreeModel *model,
  *               GtkTreeIter  *iter,
index 3afe77d72bd6734b42d2e777e856a69888d59726..f545ae7eb3d5c6ea953fcc572c4cc5c3d46b396b 100644 (file)
@@ -52,7 +52,7 @@
  *
  * <example>
  * <title>Using a #GtkTreeModelSort</title>
- * |[
+ * |[<!-- language="C" -->
  * {
  *   GtkTreeView *tree_view1;
  *   GtkTreeView *tree_view2;
@@ -88,7 +88,7 @@
  *
  * <example>
  * <title>Accessing the child model of in a selection changed callback</title>
- * |[
+ * |[<!-- language="C" -->
  * void
  * selection_changed (GtkTreeSelection *selection, gpointer data)
  * {
index e4daa6eb291b4e88888582b9b4b5c4a91468a053..b1df51550a46b761ff206dee23502db169bf21e9 100644 (file)
@@ -542,7 +542,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection  *selection,
  * To do this, you can use gtk_tree_row_reference_new().
  *
  * To free the return value, use:
- * |[
+ * |[<!-- language="C" -->
  * g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free);
  * ]|
  *
index 9d002adff67537c6c60df7489ccbdef8593a73f3..6f25ca06269f0a9b5a38be7ef8ccff60fef6451d 100644 (file)
@@ -1498,7 +1498,7 @@ gtk_tree_store_insert_after (GtkTreeStore *tree_store,
  * Calling
  * <literal>gtk_tree_store_insert_with_values (tree_store, iter, position, ...)</literal>
  * has the same effect as calling
- * |[
+ * |[<!-- language="C" -->
  * gtk_tree_store_insert (tree_store, iter, position);
  * gtk_tree_store_set (tree_store, iter, ...);
  * ]|
index ad166f59bd9a475ba72513a1452c4543471dec61..d08cca687ade54f4fd12dace4f2bc6eac8e62316 100644 (file)
@@ -1653,7 +1653,7 @@ gtk_tree_view_column_new_with_area (GtkCellArea *area)
  * gtk_tree_view_column_set_attributes() on the newly created #GtkTreeViewColumn.
  *
  * Here's a simple example:
- * |[
+ * |[<!-- language="C" -->
  *  enum { TEXT_COLUMN, COLOR_COLUMN, N_COLUMNS };
  *  ...
  *  {
index 68e87a2cf1c4058428fa93bb188c5dfe03c14e14..d4bb18b2d42e866ef1849d54a27d4ccb19d7ca95 100644 (file)
  * Here are some examples of how a %GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH widget
  * generally deals with width-for-height requests, for #GtkWidgetClass.get_preferred_height()
  * it will do:
- * |[
+ * |[<!-- language="C" -->
  * static void
  * foo_widget_get_preferred_height (GtkWidget *widget, gint *min_height, gint *nat_height)
  * {
  * And in #GtkWidgetClass.get_preferred_width_for_height() it will simply return
  * the minimum and natural width:
  *
- * |[
+ * |[<!-- language="C" -->
  * static void
  * foo_widget_get_preferred_width_for_height (GtkWidget *widget, gint for_height,
  *                                            gint *min_width, gint *nat_width)
  * be careful to call its virtual methods directly, like this:
  * <example>
  *   <title>Widget calling its own size request method.</title>
- *   |[
+ *   |[<!-- language="C" -->
  * GTK_WIDGET_GET_CLASS(widget)-&gt;get_preferred_width (widget),
  *                                  &min, &natural);
  *   ]|
@@ -2958,7 +2958,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
    * last #GtkWidget::drag-leave and if not, treat the drag-motion signal as
    * an "enter" signal. Upon an "enter", the handler will typically highlight
    * the drop site with gtk_drag_highlight().
-   * |[
+   * |[<!-- language="C" -->
    * static void
    * drag_motion (GtkWidget      *widget,
    *              GdkDragContext *context,
@@ -3126,7 +3126,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
    * gdk_drag_context_get_selected_action() before calling
    * gtk_drag_finish(), e.g. to implement %GDK_ACTION_ASK as
    * shown in the following example:
-   * |[
+   * |[<!-- language="C" -->
    * void
    * drag_data_received (GtkWidget          *widget,
    *                     GdkDragContext     *context,
@@ -10781,7 +10781,7 @@ gtk_widget_add_device_events (GtkWidget    *widget,
  * To reliably find the toplevel #GtkWindow, use
  * gtk_widget_get_toplevel() and call gtk_widget_is_toplevel()
  * on the result.
- * |[
+ * |[<!-- language="C" -->
  *  GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
  *  if (gtk_widget_is_toplevel (toplevel))
  *    {
@@ -11117,7 +11117,7 @@ gtk_widget_get_composite_name (GtkWidget *widget)
  * builders might want to treat them in a different way.
  *
  * Here is a simple example:
- * |[
+ * |[<!-- language="C" -->
  *   gtk_widget_push_composite_child ();
  *   scrolled_window->hscrollbar = gtk_scrollbar_new (GTK_ORIENTATION_HORIZONTAL, hadjustment);
  *   gtk_widget_set_composite_name (scrolled_window->hscrollbar, "hscrollbar");
@@ -15312,7 +15312,7 @@ _gtk_widget_set_has_focus (GtkWidget *widget,
  *
  * An example of its usage is:
  *
- * |[
+ * |[<!-- language="C" -->
  *   GdkEvent *fevent = gdk_event_new (GDK_FOCUS_CHANGE);
  *
  *   fevent->focus_change.type = GDK_FOCUS_CHANGE;
index 7c56bd7b8c8a013fc31976a91e1bb6c0ab74380d..95a9b0d95f591339dff6e3313d6154467b3adfba 100644 (file)
@@ -42,7 +42,7 @@
  * The widget path generation is generally simple:
  * <example>
  * <title>Defining a button within a window</title>
- * |[
+ * |[<!-- language="C" -->
  * {
  *   GtkWidgetPath *path;
  *
@@ -59,7 +59,7 @@
  *
  * <example>
  * <title>Defining the first tab widget in a notebook</title>
- * |[
+ * |[<!-- language="C" -->
  * {
  *   GtkWidgetPath *path;
  *   guint pos;
index 6d43b263734e8cd75ac18640079649d72b8bdc06..0758ac923a588cdb1fe07f1c2011cfa925f98dd4 100644 (file)
@@ -11351,7 +11351,7 @@ gtk_XParseGeometry (const char   *string,
  * to be called when the window has its "final" size, i.e. after calling
  * gtk_widget_show_all() on the contents and gtk_window_set_geometry_hints()
  * on the window.
- * |[
+ * |[<!-- language="C" -->
  * #include <gtk/gtk.h>
  *    
  * static void